<!DOCTYPE html>
<html>
    <head>
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'accountListedInfoDebt.label', default: 'accountListedInfoDebt')}" />
        <title>新增企业上市信息</title>
    </head>
    <body class="fixed-navbar fixed-sidebar">
        <div class="small-header transition animated fadeIn">
            <div class="hpanel">
                <div class="panel-body">
                    <div id="hbreadcrumb" class="pull-right">
                        <ol class="hbreadcrumb breadcrumb">
                            <li>贷款管理系统</li>
                            <li class="active">
                                <span>新增企业上市信息</span>
                            </li>
                        </ol>
                    </div>
                    <h2 class="font-light m-b-xs">
                        新增企业上市信息
                    </h2>
                </div>
            </div>
        </div>
        <div class="content animate-panel">
            <div class="row">
                <div class="hpanel hyellow">
                    <div class="panel-heading">
                        新增企业上市信息
                    </div>
                    <div class="panel-body">
                        <g:if test="${flash.message}">
                        <div class="message" role="status">${flash.message}</div>
                        </g:if>
                        <g:hasErrors bean="${this.accountListedInfo}">
                        <ul class="errors" role="alert">
                            <g:eachError bean="${this.accountListedInfo}" var="error" >
                            <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
                            </g:eachError>
                        </ul>
                        </g:hasErrors>
                        <g:form action="save" class="form-horizontal">


                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-md-2 control-label">上市地</label>
                                <div class="col-md-3"><g:textField name="address" value="${this.accountListedInfo.address}" class="form-control" /></div>
                                <label class="col-md-2 control-label">上市日期</label>
                                <div class="col-md-3 datePicker">
                                    <g:datePicker name="listedDate"  value="${new Date()}" precision="day"/>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-md-2 control-label">股票名称</label>
                                <div class="col-md-3"><g:textField name="stockName" value="${this.accountListedInfo?.stockName}" class="form-control" /></div>
                                <label class="col-md-2 control-label">股票代码</label>
                                <div class="col-md-3"><g:textField name="stockCode" value="${this.accountListedInfo?.stockCode}" class="form-control" /></div>

                            </div>

                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-md-2 control-label">股票类型</label>
                                <div class="col-md-3"><g:textField name="stockType" value="${this.accountListedInfo?.stockType}" class="form-control" /></div>
                                <label class="col-md-2 control-label">更新日期</label>
                                <div class="col-md-3 datePicker">
                                    <g:datePicker name="modifiedDate"  value="${new Date()}" precision="day"/>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                              <label class="col-md-2 control-label">登记日期</label>
                              <div class="col-md-3 datePicker">
                                <g:datePicker name="registerDate"  value="${new Date()}" precision="day"/>
                              </div>
                                <label class="col-md-2 control-label">登记机构</label>
                                <div class="col-md-3"><g:textField name="registerAccount" value="${this.accountListedInfo.registerAccount}" class="form-control" /></div>
                            </div>
                            <g:hiddenField name="targetUri"  value="${targetUri}"/>
                            <g:hiddenField name="account.id"  value="${accountId}"/>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-md-3 col-md-offset-3">
                                    <g:submitButton class="btn btn-info" name="create" value="保存" />
                                </div>
                            </div>
                        </g:form>
                    </div>
                </div>
            </div>
        </div>

    </body>
</html>
